<div ng-controller="addCommunity4GroupCtrl
">
    <h4>添加板块所属小区</h4>

    <form class="form account-form">
        <label class="control-label">已选择小区：</label>
        <span id="selCommunity"></span>
        <br />
        <label class="control-label">小区名称：</label>
        <input class="" ng-model="communityName" tabindex="5">
        <button ng-click="search()" class="btn btn-xs btn-primary">搜索</button>
        <br />
        <table class="table table-condensed">
            <thead>
            <tr>
                <th>小区名称</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="result in resultList">
                <th>{{result.communityName}}</th>
                <th>
                    <button type="radio" class="btn-primary btn-sm" ng-click="select(result.objId,result.communityName)" >添加</button>
                </th>
            </tr>
            </tbody>
        </table>
        <br />
        <br />
        <br />
        <br />
        <div class="form-group">
            <button ng-click="cannel()" class="btn btn-xs btn-primary">取消</button>
            <button ng-click="save()" class="btn btn-xs btn-primary" type="submit">保存</button>
        </div>
    </form>
</div>

